<?php
namespace app\models;

use Yii;

class Basic extends \yii\db\ActiveRecord
{
    protected $userInfo;//登录信息

    public function init()
    {
        if(isset(Yii::$app->session->get('loginInfo')->userInfo)){
            $this->userInfo = Yii::$app->session->get('loginInfo')->userInfo;
        }
    }

    
}